package com.itheima.myreflect2.Student.convertedio;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @program: Myset
 * @description:
 * @author: xuejingjing
 * @create: 2021-06-16 09:15
 **/
public class ConvertedDemo1 {
    public static void main(String[] args) throws IOException {
        //字符输入流
        FileReader fr = new FileReader("D:\\11.txt");
        int ch;
        while((ch = fr.read())!= -1){
            System.out.println((char)ch);
            System.out.println(ch);
        }
        fr.close();
    }
}
